<?php 
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
require 'jtools.inc';
require 'mysql_connect.php';


$vTextColor 			= $_REQUEST["pTextColor"];
$vHomePageBackground 	= $_REQUEST["pHomePageBackground"];
$vFooterSection 		= $_REQUEST["pFooterSection"];
$vFooterTextColor 		= $_REQUEST["pFooterTextColor"];
$vHeaderSection 		= $_REQUEST["pHeaderSection"];
$vHeaderTextColor 		= $_REQUEST["pHeaderTextColor"];
$vTabletHeaderTextColor	= $_REQUEST["pTabletHeaderTextColor"];
$vTabletHeaderSection 	= $_REQUEST["pTabletHeaderSection"];
$vButtons 				= $_REQUEST["pButtons"];
$vIncludeWebsite 		= $_REQUEST["pIncludeWebsite"];
$vIncludeAboutUs 		= $_REQUEST["pIncludeAboutUs"];
$vIncludeTestimonials 	= $_REQUEST["pIncludeTestimonials"];
$vIncludeNews 			= $_REQUEST["pIncludeNews"];
$vIncludeFacebook 		= $_REQUEST["pIncludeFacebook"];
$vIncludeTwitter 		= $_REQUEST["pIncludeTwitter"];
$vEmail					= $_REQUEST["pEmail"];
$vFacebook				= $_REQUEST["pFacebook"];
$vWebsite				= $_REQUEST["pWebsite"];
$vTwitter				= $_REQUEST["pTwitter"];
$vSubmit				= $_REQUEST["pSubmit"];

$vAllowedExts = array("jpg", "jpeg", "gif", "png");
if (strlen($_FILES["pLogo"]["name"]) > 0) {
	echo 
	$vExtension = end(explode(".", $_FILES["pLogo"]["name"]));
	if ((($_FILES["pLogo"]["type"] == "image/gif") || ($_FILES["pLogo"]["type"] == "image/jpeg") || ($_FILES["pLogo"]["type"] == "image/pjpeg")) && in_array($vExtension, $vAllowedExts)) {
		if ($_FILES["pLogo"]["error"] == 0) {
			$vNewFileName = "logos/" . $_COOKIE["RealtyAppCookie_AgentID"] . '.' . $vExtension;
			if (file_exists($vNewFileName)) {
				chmod($vNewFileName,0755); 		//Change the file permissions if allowed
				unlink($vNewFileName); 			//remove the file
			}
			move_uploaded_file($_FILES["pLogo"]["tmp_name"], $vNewFileName);
			$vLogo = $vExtension;
		} else {
			$vMessage = $vMessage . 'Sorry, there was an error uploading your Logo file.<BR>';
		}
	} else {
		$vMessage = $vMessage . "Sorry, invalid Logo file type please use a jpg, png, or gif.<BR>";
	}
}
if (strlen($_FILES["pPhoneLaunchImage"]["name"]) > 0) {
	$vExtension = end(explode(".", $_FILES["pPhoneLaunchImage"]["name"]));
	if ((($_FILES["pPhoneLaunchImage"]["type"] == "image/gif") || ($_FILES["pPhoneLaunchImage"]["type"] == "image/jpeg") || ($_FILES["pPhoneLaunchImage"]["type"] == "image/pjpeg")) && in_array($vExtension, $vAllowedExts)) {
		if ($_FILES["pPhoneLaunchImage"]["error"] == 0) {
			$vNewFileName = "logos/PLI" . $_COOKIE["RealtyAppCookie_AgentID"] . '.' . $vExtension;
			if (file_exists($vNewFileName)) {
				chmod($vNewFileName,0755); 		//Change the file permissions if allowed
				unlink($vNewFileName); 			//remove the file
			}
			move_uploaded_file($_FILES["pPhoneLaunchImage"]["tmp_name"], $vNewFileName);
			$vPhoneLaunchImage = $vExtension;
		} else {
			$vMessage = $vMessage . 'Sorry, there was an error uploading your Phone Launch Image file.<BR>';
		}
	} else {
		$vMessage = $vMessage . "Sorry, invalid Phone Launch Image file type please use a jpg, png, or gif.<BR>";
	}
}
if (strlen($_FILES["pTabletLaunchImageLandscape"]["name"]) > 0) {
	$vExtension = end(explode(".", $_FILES["pTabletLaunchImageLandscape"]["name"]));
	if ((($_FILES["pTabletLaunchImageLandscape"]["type"] == "image/gif") || ($_FILES["pTabletLaunchImageLandscape"]["type"] == "image/jpeg") || ($_FILES["pTabletLaunchImageLandscape"]["type"] == "image/pjpeg")) && in_array($vExtension, $vAllowedExts)) {
		if ($_FILES["pTabletLaunchImageLandscape"]["error"] == 0) {
			$vNewFileName = "logos/TLIL" . $_COOKIE["RealtyAppCookie_AgentID"] . '.' . $vExtension;
			if (file_exists($vNewFileName)) {
				chmod($vNewFileName,0755); 		//Change the file permissions if allowed
				unlink($vNewFileName); 			//remove the file
			}
			move_uploaded_file($_FILES["pTabletLaunchImageLandscape"]["tmp_name"], $vNewFileName);
			$vTabletLaunchImageLandscape = $vExtension;
		} else {
			$vMessage = $vMessage . 'Sorry, there was an error uploading your Tablet Launch Image file.<BR>';
		}
	} else {
		$vMessage = $vMessage . "Sorry, invalid Tablet Launch Image file type please use a jpg, png, or gif.<BR>";
	}
}
if (strlen($_FILES["pTabletLaunchImagePortrait"]["name"]) > 0) {
	$vExtension = end(explode(".", $_FILES["pTabletLaunchImagePortrait"]["name"]));
	if ((($_FILES["pTabletLaunchImagePortrait"]["type"] == "image/gif") || ($_FILES["pTabletLaunchImagePortrait"]["type"] == "image/jpeg") || ($_FILES["pTabletLaunchImagePortrait"]["type"] == "image/pjpeg")) && in_array($vExtension, $vAllowedExts)) {
		if ($_FILES["pTabletLaunchImagePortrait"]["error"] == 0) {
			$vNewFileName = "logos/TLIP" . $_COOKIE["RealtyAppCookie_AgentID"] . '.' . $vExtension;
			if (file_exists($vNewFileName)) {
				chmod($vNewFileName,0755); 		//Change the file permissions if allowed
				unlink($vNewFileName); 			//remove the file
			}
			move_uploaded_file($_FILES["pTabletLaunchImagePortrait"]["tmp_name"], $vNewFileName);
			$vTabletLaunchImagePortrait = $vExtension;
		} else {
			$vMessage = $vMessage . 'Sorry, there was an error uploading your Tablet Launch Image Portrait file.<BR>';
		}
	} else {
		$vMessage = $vMessage . "Sorry, invalid Tablet Launch Image Portrait file type please use a jpg, png, or gif.<BR>";
	}
}
if (strlen($_FILES["pTabletBGImageLandscape"]["name"]) > 0) {
	$vExtension = end(explode(".", $_FILES["pTabletBGImageLandscape"]["name"]));
	if ((($_FILES["pTabletLaunchBackgroundImageLandscape"]["type"] == "image/gif") || ($_FILES["pTabletBGImageLandscape"]["type"] == "image/jpeg") || ($_FILES["pTabletBGImageLandscape"]["type"] == "image/pjpeg")) && in_array($vExtension, $vAllowedExts)) {
		if ($_FILES["pTabletBGImageLandscape"]["error"] == 0) {
			$vNewFileName = "logos/TBGIL" . $_COOKIE["RealtyAppCookie_AgentID"] . '.' . $vExtension;
			if (file_exists($vNewFileName)) {
				chmod($vNewFileName,0755); 		//Change the file permissions if allowed
				unlink($vNewFileName); 			//remove the file
			}
			move_uploaded_file($_FILES["pTabletBGImageLandscape"]["tmp_name"], $vNewFileName);
			$vTabletLaunchBGImageLandscape = $vExtension;
		} else {
			$vMessage = $vMessage . 'Sorry, there was an error uploading your Tablet Launch Background Image Landscape file.<BR>';
		}
	} else {
		$vMessage = $vMessage . "Sorry, invalid Tablet Launch Background Image Landscape file type please use a jpg, png, or gif.<BR>";
	}
}
if (strlen($_FILES["pTabletBGImagePortrait"]["name"]) > 0) {
	$vExtension = end(explode(".", $_FILES["pTabletBGImagePortrait"]["name"]));
	if ((($_FILES["pTabletLaunchBackgroundImagePortrait"]["type"] == "image/gif") || ($_FILES["pTabletBGImagePortrait"]["type"] == "image/jpeg") || ($_FILES["pTabletBGImagePortrait"]["type"] == "image/pjpeg")) && in_array($vExtension, $vAllowedExts)) {
		if ($_FILES["pTabletBGImagePortrait"]["error"] == 0) {
			$vNewFileName = "logos/TBGIP" . $_COOKIE["RealtyAppCookie_AgentID"] . '.' . $vExtension;
			if (file_exists($vNewFileName)) {
				chmod($vNewFileName,0755); 		//Change the file permissions if allowed
				unlink($vNewFileName); 			//remove the file
			}
			move_uploaded_file($_FILES["pTabletBGImagePortrait"]["tmp_name"], $vNewFileName);
			$vTabletLaunchBGImagePortrait = $vExtension;
		} else {
			$vMessage = $vMessage . 'Sorry, there was an error uploading your Tablet Launch Background Image Portrait file.<BR>';
		}
	} else {
		$vMessage = $vMessage . "Sorry, invalid Tablet Launch Background Image Portrait file type please use a jpg, png, or gif.<BR>";
	}
}

if (($vSubmit == 'Submit') && !isset($vMessage)) { //changes submited
	$vQuery = "UPDATE reagent SET Email='" . $vEmail . "', Facebook='" . $vFacebook . "', Website='" . $vWebsite . "', Twitter='" . $vTwitter . "', Logo='" . $vLogo . "', PhoneLaunchImage='" . $vPhoneLaunchImage . "', TabletLaunchImageLandscape='" . $vTabletLaunchImageLandscape . "', TabletLaunchImagePortrait='" . $vTabletLaunchImagePortrait . "', TabletBGImageLandscape='" . $vTabletBGImageLandscape . "', TabletBGImagePortrait='" . $vTabletBGImagePortrait . "', TextColor='" . $vTextColor . "', HomePageBackground='" . $vHomePageBackground . "', FooterSection='" . $vFooterSection . "', FooterTextColor='" . $vFooterTextColor . "', HeaderSection='" . $vHeaderSection . "', HeaderTextColor='" . $vHeaderTextColor . "', TabletHeaderTextColor='" . $vTabletHeaderTextColor . "', TabletHeaderSection='" . $vTabletHeaderSection . "', Buttons='" . $vButtons . "', IncludeWebsite='" . $vIncludeWebsite . "', IncludeAboutUs='" . $vIncludeAboutUs . "', IncludeTestimonials='" . $vIncludeTestimonials . "', IncludeNews='" . $vIncludeNews . "', IncludeFacebook='" . $vIncludeFacebook . "', IncludeTwitter='" . $vIncludeTwitter . "' WHERE idREAgent=" . $_COOKIE["RealtyAppCookie_AgentID"];
	mysql_query($vQuery) or die($vQuery . "<BR>Invalid query 2: " . mysql_error());
	$vMessage = 'Changes have been saved succesfully.<BR>';
}

$rsAgents = mysql_query("SELECT Email, Website, Twitter, Facebook, Logo, TextColor, HomePageBackground, FooterSection, FooterTextColor, HeaderSection, HeaderTextColor, TabletHeaderTextColor, TabletHeaderSection, Buttons, IncludeWebsite, IncludeAboutUs, IncludeTestimonials, IncludeNews, IncludeFacebook, IncludeTwitter FROM reagent WHERE idREAgent=" . $_COOKIE['RealtyAppCookie_AgentID'])  or die("Invalid query 1: " . mysql_error());
$rsAgent = mysql_fetch_array($rsAgents,MYSQL_BOTH);
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <head><title></title>
        <meta name="keywords" content="" />
        <meta name="description" content="" />
        <meta name="abstract" content="" />
        <meta name="robots" content="All">
        <meta name="robots" content="noindex, nofollow">
        <meta name="copyright" content="Copyright " />
        <meta name="author" content="" />
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
        <meta content="no" http-equiv="imagetoolbar" />
        <title>Jasdip.co.uk # Mobile App Development Platform</title>
        <link rel="shortcut icon" href="http://www.appmanager.co.uk/admin_us_broker/favicon.ico"/>
        <link href="style.css" rel="stylesheet" type="text/css">
	<link href="css/slider.css" rel="stylesheet" type="text/css">
        <link href="css/style.css" media="all" rel="stylesheet" type="text/css" />
	<link rel="stylesheet" href="css/jquery-ui-1.8.16.custom.css" type="text/css" media="screen" />
	<link rel="Stylesheet" type="text/css" href="css/jPicker-1.1.6.min.css" />

	<script src="js/jquery-1.6.2.min.js"  type="text/javascript"></script> 
	<script src="js/jquery-ui-1.8.16.custom.min.js"  type="text/javascript"></script>
	<script src="js/jquery.jcarousel.pack.js"  type="text/javascript"></script>
	<script src="js/jquery-func.js" type="text/javascript"></script>
		
	<script src="js/jpicker-1.1.6.min.js" type="text/javascript"></script>
	<!--<script src="js/jquery.js" type="text/javascript"></script>-->
	<script src="http://www.appmanager.co.uk/admin_us_broker/js/javascri.js" type="text/javascript"></script>
        <script src="js/jquery.getParams.js" type="text/javascript"></script>
        <script src="js/jquery.bestupper.min.js" type="text/javascript"></script>
        <script src="js/jquery.alphanumeric.js" type="text/javascript"></script>
        <script src="js/jquery.form-defaults.js" type="text/javascript"></script>
        <script src="js/textLimit.min.js" type="text/javascript"></script>
        <script src="js/ipublish.js" type="text/javascript"></script>
	<script src="js/iphone-style-checkboxes.js" type="text/javascript" charset="utf-8"></script>
        	<script type="text/javascript" charset="utf-8" src="js/site.js"></script>
	<script type="text/javascript" src="fancybox/jquery.mousewheel-3.0.4.pack.js"></script>
	<script type="text/javascript" src="fancybox/jquery.fancybox-1.3.4.pack.js"></script>
	<script type="text/javascript" src="js/ajaxfileupload.js"></script>
	<link rel="stylesheet" type="text/css" href="fancybox/jquery.fancybox-1.3.4.css" media="screen" />
  </head>
    <body>
        <div class="outside2">

            <div class="header_wrap cc">


                <div class="header_wrap cc">
                    <script>

    $(document).ready(function(){
        $('[rel=tooltip]').bind('mouseover', function(){
            var theMessage = $(this).attr('content');
            $('<div class="tooltip">' + theMessage + '</div>').appendTo('body').fadeIn('fast');

            $(this).bind('mousemove', function(e){
                $('div.tooltip').css({
                    'top': e.pageY - ($('div.tooltip').height())+10,
                    'left': e.pageX +30
                });
            });
        }).bind('mouseout', function(){
            $('div.tooltip').fadeOut('fast', function(){
                $(this).remove();
            });
        });
    });
	
</script>
<div class="lftop">
    <a href="home.php" class="logo">
        <img src="images/logo/logo.png"/>
    </a>
</div>
<div class="right_topwrap">
    <div class="topwrap cc">
        <p class="phonetop">Phone Support (from 8am to 5pm): 212 209 1005	</p>
        <div class="agentwrap">
            <ul class="toplinks">
                <li class="notif_ic"><a href="app_property_settings.php#" content="Powered by Digital Planit" rel="tooltip">&nbsp;</a></li>
                <li class="mail_ic"><a href="mailto:support@realtysmartapps.com">&nbsp;</a></li>
              
                <li class="help_ic"><a href="mailto:support@realtysmartapps.com" >&nbsp;</a></li>  
				<li class="settings_ic"><a href="app_property_settings.php">&nbsp;</a></li>            </ul>
        </div></div>
    <ul class="main_menu cc">
        <li class="homelk"><a href="home.php"><span>Home</span></a></li>
        <li  class="brokers"><a href="brokers.php"><span>My Details</span></a></li>        <li  class="testimonials"><a href="testimonials.php"><span>Testimonials</span></a></li>
        <!--li class="tour"><a href="tour.php"><span>Tour</span></a></li-->
        <li class="news"><a href="news.php"><span>News</span></a></li>
        <li class="abouttext"><a href="about-text.php"><span>About Text</span></a></li>
        <li class="stats"><a href="stats.php"><span>Stats</span></a></li>        <!--li class="images"><a href="images.php"><span>Images</span></a></li-->        <!--<li class="advert"><a href="adverts.php"><span>Adverts</span></a></li>
        <li class="notification"><a href="notifications.php"><span>Notification</span></a></li>
	<li class="payment "><a href="payment.php"><span>Payment</span></a></li>-->
        <li class="logout"><a href="login.php?pAction=<?=jencrypt('logout')?>"><span>Log Out</span></a></li>
    </ul>
</div>

<div id="menu">

</div>

</div>
                </div>
            </div>

            <div class="container_wrap">
                
<div class="topshadow">&nbsp;</div>
<div class="lineshadow cc">
    <div class="middle cc">

        <div class="cc"><img src="images/jasdip_logo.png" class="piclg"/>
            <div class="introtext">
                <ul class="listlogos cc">
                </ul>
                <br/>
                <h1 class="say-hello"><cufon class="cufon cufon-canvas" alt="Come " style="width: 54px; height: 20px;"><canvas width="68" height="20" style="width: 68px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>Come </cufontext></cufon><cufon class="cufon cufon-canvas" alt="on, " style="width: 31px; height: 20px;"><canvas width="45" height="20" style="width: 45px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>on, </cufontext></cufon><cufon class="cufon cufon-canvas" alt="say " style="width: 32px; height: 20px;"><canvas width="46" height="20" style="width: 46px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>say </cufontext></cufon><cufon class="cufon cufon-canvas" alt="hello!" style="width: 46px; height: 20px;"><canvas width="60" height="20" style="width: 60px; height: 20px; top: 0px; left: -1px;"></canvas><cufontext>hello!</cufontext></cufon></h1>
            </div>
        </div>
        <div class="contentpage">


            <h2>Modify your app content here.</h2>
            <p class="error_wrapper"><?=$vMessage?></p>
	    <p>All iPad images ( “Launch / Splash” & Home Page Background) must be a minimum of 1024x768px. Any iPhone / Android images for the iPhone/Android must be a minimum of 480x320px.<p>
<form action="app_property_settings.php" class="yourapp" name="settings_form" method="POST" enctype="multipart/form-data">
	
	
	<p><span>Logo (min. 512x512px)</span><input type="file" name="pLogo"class="inputtype">
		<?php if (strlen($rsAgent['Logo']) > 0) echo '<a href="logos/' . $_COOKIE['RealtyAppCookie_AgentID'] . '.' . $rsAgent['Logo'] . '" target="_blank" style="padding-left: 10px;">View Current Image</a>';	?>    
		</p>
	<p><span>Launch Image (iPhone / Android)</span><input type="file" name="pPhoneLaunchImage"class="inputtype">
		<?php if (strlen($rsAgent['PhoneLaunchImage']) > 0) echo '<a href="logos/PLI' . $_COOKIE['RealtyAppCookie_AgentID'] . '.' . $rsAgent['Logo'] . '" target="_blank" style="padding-left: 10px;">View Current Image</a>';	?>    
		</p>
	<p><span>Launch Image (iPad) Landscape</span><input type="file" name="pTabletLaunchImageLandscape" class="inputtype">
		<?php if (strlen($rsAgent['TabletLaunchImageLandscape']) > 0) echo '<a href="logos/TLIL' . $_COOKIE['RealtyAppCookie_AgentID'] . '.' . $rsAgent['Logo'] . '" target="_blank" style="padding-left: 10px;">View Current Image</a>';	?>    
		</p>
	<p><span>Launch Image (iPad) Portrait</span><input type="file" name="pTabletLaunchImagePortriat" class="inputtype">
		<?php if (strlen($rsAgent['TabletLaunchImagePortriat']) > 0) echo '<a href="logos/TLIP' . $_COOKIE['RealtyAppCookie_AgentID'] . '.' . $rsAgent['Logo'] . '" target="_blank" style="padding-left: 10px;">View Current Image</a>';	?>    
		</p>
	<p><span>Home BG Image (iPad only) Landscape</span><input type="file" name="pTabletBGImageLandscape"class="inputtype">
		<?php if (strlen($rsAgent['TabletBGImageLandscape']) > 0) echo '<a href="logos/TBGIL' . $_COOKIE['RealtyAppCookie_AgentID'] . '.' . $rsAgent['Logo'] . '" target="_blank" style="padding-left: 10px;">View Current Image</a>';	?>    
		</p>
	<p><span>Home BG Image (iPad only) Portrait</span><input type="file" name="pTabletBGImagePortrait"class="inputtype">
		<?php if (strlen($rsAgent['TabletBGImagePortrait']) > 0) echo '<a href="logos/TBGIP' . $_COOKIE['RealtyAppCookie_AgentID'] . '.' . $rsAgent['Logo'] . '" target="_blank" style="padding-left: 10px;">View Current Image</a>';	?>    
		</p>
	
	<p><span>Text Colour</span><input class="Multiple" type="text" name="pTextColor" value="<?=$rsAgent["TextColor"]?>"/></p>
	
	<p><span>Home Page Background</span><input class="Multiple" type="text" name="pHomePageBackground" value="<?=$rsAgent["HomePageBackground"]?>"/></p>
	
	<p><span>Footer Section</span><input class="Multiple" type="text" name="pFooterSection" value="<?=$rsAgent["FooterSection"]?>" /></p>
	
	<p><span>Footer Text Colour</span><input class="Multiple" type="text" name="pFooterTextColor" value="<?=$rsAgent["FooterTextColor"]?>"/></p>
	
	<p><span>Header Section</span><input class="Multiple" type="text" name="pHeaderSection" value="<?=$rsAgent["HeaderSection"]?>"/></p>
	
	<p><span>Header Text Colour</span><input class="Multiple" type="text" name="pHeaderTextColor" value="<?=$rsAgent["HeaderTextColor"]?>" /></p>
	
	<p><span>Header Section (iPad) Text Colour</span><input class="Multiple" type="text" name="pTabletHeaderTextColor" value="<?=$rsAgent["TabletHeaderTextColor"]?>" /></p>
	
	<p><span>Header Section (iPad) Colour</span><input class="Multiple" type="text" name="pTabletHeaderSection" value="<?=$rsAgent["TabletHeaderSection"]?>" /></p>


	<p><span>Buttons/Icons</span><input class="Multiple" type="text" name="pButtons" value="<?=$rsAgent["Buttons"]?>"/></p>

	<p><span>Include Website Link</span>
		<?php $vChecked=' '; if ($rsAgent["IncludeWebsite"] == '1') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"> <input type="radio" <?=$vChecked?> id="onwebsite" name="pIncludeWebsite" value="1"/><label for="onwebsite">on</label></span>
		<?php $vChecked=' '; if ($rsAgent["IncludeWebsite"] == '0') $vChecked=' checked="checked"'; ?>		
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="offwebsite" name="pIncludeWebsite" value="0"/><label for="offwebsite">off</label></span></p>		
	<p><span>Agent Web Site (include - http://)</span><input type="text" name="pWebsite" value="<?=$rsAgent["Website"]?>"class="inputtype" maxlength="60"></p>
	
	<p><span>Include About Us Page</span>
		<?php $vChecked=' '; if ($rsAgent["IncludeAboutUs"] == '1') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="onabout" name="pIncludeAboutUs" value="1"/><label for="onabout">on</label></span>
		<?php $vChecked=' '; if ($rsAgent["IncludeAboutUs"] == '0') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="offabout" name="pIncludeAboutUs" value="0"/><label for="offabout">off</label></span></p>
	
	<p><span>Feedback Email Address</span><input type="text" name="pEmail" value="<?=$rsAgent["Email"]?>" class="inputtype" maxlength="50"></p>	
	
	<p><span>Include Testimonials Page </span>
		<?php $vChecked=' '; if ($rsAgent["IncludeTestimonials"] == '1') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"> <input type="radio" <?=$vChecked?> id="ontestimonials" name="pIncludeTestimonials" value="1"/><label for="ontestimonials"value="on">on</label></span>
		<?php $vChecked=' '; if ($rsAgent["IncludeTestimonials"] == '0') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="offtestimonials" name="pIncludeTestimonials" value="0"/><label for="offtestimonials">off</label></span></p>
	
	<p><span>Include News Page</span>
		<?php $vChecked=' '; if ($rsAgent["IncludeNews"] == '1') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"> <input type="radio" <?=$vChecked?> id="onnews" name="pIncludeNews" value="1"/><label for="onnews">on</label></span>
		<?php $vChecked=' '; if ($rsAgent["IncludeNews"] == '0') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="offnews" name="pIncludeNews" value="0"/><label for="offnews">off</label></span></p>
	
	<p><span>Include Facebook Link</span>
		<?php $vChecked=' '; if ($rsAgent["IncludeFacebook"] == '1') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"> <input type="radio" <?=$vChecked?> id="onfacebook" name="pIncludeFacebook" value="1"/><label for="onfacebook">on</label></span>
		<?php $vChecked=' '; if ($rsAgent["IncludeFacebook"] == '0') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="offfacebook" name="pIncludeFacebook" value="0"/><label for="offfacebook">off</label></span></p>
	<p><span>Facebook (include - http://)</span><input type="text" name="pFacebook" class="inputtype" value="<?=$rsAgent["Facebook"]?>" maxlength="110"></p>
	
	<p><span>Include Twitter Link</span>
		<?php $vChecked=' '; if ($rsAgent["IncludeTwitter"] == '1') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"> <input type="radio" <?=$vChecked?> id="on-twitter" name="pIncludeTwitter" value="1"/><label for="on-twitter">on</label></span>
		<?php $vChecked=' '; if ($rsAgent["IncludeTwitter"] == '0') $vChecked=' checked="checked"'; ?>
		<span class="radiotp"><input type="radio" <?=$vChecked?> id="off-twitter" name="pIncludeTwitter" value="0"/><label for="off-twitter">off</label></span></p>
	<p><span>Twitter (include - http://)</span><input type="text" name="pTwitter"class="inputtype"value="<?=$rsAgent["Twitter"]?>" maxlength="110"></p>
		
	<p><input type="submit" tabindex="110" name="pSubmit" id="submit_form" class="submit_btn" value="Submit"></p>
</form>
        </div>
        <img src="images/iphone_pic.jpg" class="piccontent2"/>
    </div>
</div>
<script>
$(document).ready(function (){
$('#version_nr_iphone').keyup( function() {
		var $this = $(this);
		if($this.val().length > 3)
			$this.val($this.val().substr(0, 3));			
	});
	$('#version_nr_ipad').keyup( function() {
		var $this = $(this);
		if($this.val().length > 3)
			$this.val($this.val().substr(0, 3));			
	});
	$('#version_nr_android').keyup( function() {
		var $this = $(this);
		if($this.val().length > 3)
			$this.val($this.val().substr(0, 3));			
	});
	$('#version_nr_mobilesite').keyup( function() {
		var $this = $(this);
		if($this.val().length > 3)
			$this.val($this.val().substr(0, 3));			
	});
});

</script>
            </div>	

            <div class="footer_wrap2 cc">
                <div class="bgfooter cc">
                    
                </div>

            </div>

        </div>

        <script type="text/javascript">
            
  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-19667077-4']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();
            
        </script>	

    </body>
</html>